package com.zjm.structural.bridge.phone;

public class Client {
    public static void main(String[] args) {
        Phone foldedPhone1 = new FoldedPhone(new XiaoMi());
        foldedPhone1.open();
        foldedPhone1.call();
        foldedPhone1.close();
        System.out.println("-".repeat(100));
        Phone foldedPhone2 = new FoldedPhone(new Vivo());
        foldedPhone2.open();
        foldedPhone2.call();
        foldedPhone2.close();

        System.out.println("=".repeat(100));
        Phone fullScreenPhone1 = new FullScreenPhone(new XiaoMi());
        fullScreenPhone1.open();
        fullScreenPhone1.call();
        fullScreenPhone1.close();
        System.out.println("-".repeat(100));
        Phone fullScreenPhone2 = new FullScreenPhone(new Vivo());
        fullScreenPhone2.open();
        fullScreenPhone2.call();
        fullScreenPhone2.close();
    }
}
